#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>

int aaa(int x,int y)
{
	int i = 0;
	if (y == 0)
		return 1;
	else
	return x * aaa(x, y-1);
}

int main()
{
	int n, k;
	scanf("%d %d", &n, &k);
	printf("%d", aaa(n, k));
	return 0;
}